package com.hup2c.transwarpSpringboot.demos.web;

import com.hup2c.transwarpSpringboot.demos.mapper.TestMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class HiveService {

    @Resource
    private TestMapper testMapper;

    public String allTable() {
        List<Map<String, Object>> mysqlTable = testMapper.mysqlTable();
        List<Map<String, Object>> hiveTable = testMapper.hiveTable();

        return mysqlTable.toString() + "\n" + hiveTable.toString() + "\n";
    }
}
